package com.example.helloandroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class MacMSAActivity extends Activity {
	Button facebook, prayingCampus, forums, msaVideos, twitter;
	Boolean showPrayTime = false; 
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        facebook = (Button) findViewById(R.id.facebook);
        prayingCampus = (Button) findViewById(R.id.praying_campus);
        forums = (Button) findViewById(R.id.forums);
        msaVideos = (Button) findViewById(R.id.msavideos);
        twitter = (Button) findViewById(R.id.twitter);
        
        twitter.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent twitterIntent = new Intent(MacMSAActivity.this, Twitter.class);
			    startActivity (twitterIntent);
			}
		});
        
        facebook.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent facebookIntent = new Intent(MacMSAActivity.this, Facebook.class);
			    startActivity (facebookIntent);
			}
		});
        
        prayingCampus.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
		       Intent prayCampusIntent = new Intent(MacMSAActivity.this, PrayingCampus.class);
		       startActivity (prayCampusIntent);
			}
		});
        
        forums.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent forumsIntent = new Intent(MacMSAActivity.this, Forum.class);
			    startActivity (forumsIntent);
			}
		});
        msaVideos.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent videosIntent = new Intent(MacMSAActivity.this, Videos.class);
			    startActivity (videosIntent);
			}
		});
    }
}